<template>
  <div class="card-container">
    <!-- 进度 -->
    <!-- <div class="progressBar">
      <div class="start"></div>
      <div class="line-progressBar">
        <div class="line-item">
          <div class="current-num">30%</div>
        </div>
      </div>
      <div class="end"></div>
      <div class="progressBar-num">
        <span>0%</span>
        <span>100%</span>
      </div>
      <div class="tips">请填写基本资料信息！</div>
      <div class="center-btn">
        <el-button round type="primary" size="medium">保存至草稿箱</el-button>
      </div>
    </div> -->

    <!-- 填写身份信息 -->
    <div class="user-info-box">
      <div class="user-info">
        <i class="el-icon-user"></i>
        <span>填写身份信息</span>
      </div>
      <div class="user-info-item">
        <div class="item-title"><span>*</span> 中文姓名</div>
        <div class="user-input">
          <input type="text" placeholder="请输入姓名,例如:张三"/>
          <div class="input-tips">请输入您的姓名</div>
        </div>
      </div>
      <div class="user-info-item">
        <div class="item-title"><span>*</span> 姓名拼音</div>
        <div class="user-input">
          <input type="text" placeholder="请输入您姓名的字母拼音"/>
          <div class="input-tips">请输入您姓名的字母拼音</div>
        </div>
      </div>
      <div class="user-info-item">
        <div class="item-title"><span>*</span> 身份证号</div>
        <div class="user-input">
          <input type="text" placeholder="请输入身份证号"/>
          <div class="input-tips">请输入身份证号</div>
        </div>
      </div>
      <div class="user-info-item">
        <div class="item-title"><span>*</span> 手机号</div>
        <div class="user-input">
          <input type="text" placeholder="请输入手机号"/>
          <div class="input-tips">请输入手机号</div>
        </div>
      </div>
      <div class="user-info-item">
        <div class="item-title"><span>*</span> 验证码</div>
        <div class="user-input">
          <input type="text" placeholder="请输入验证码"/>
          <img src="../../assets/systemLoginBg.jpg" class="code-img" />
          <div class="input-tips">请输入验证码</div>
        </div>
      </div>
    </div>

    <!-- 阅读协议 -->
    <div class="user-agreement">
      <div class="user-info">
        <i class="el-icon-tickets"></i>
        <span>阅读协议</span>
      </div>
      <div class="agreement-item">
        <el-checkbox></el-checkbox>
        <span>本人已阅读全部申请材料，充分了解并清楚知晓该信用卡产品的相关信息，愿意遵守</span>
        <a href="#">《中国建设银行龙卡信用卡领用协议》</a>
      </div>
      <div class="write-agreement">
        <label>本人已阅读全部申请材料，</label>
        <div class="write-row">
          <div class="write-input">
            <span>1.</span>
            <input type="text" />
          </div>
          <i class="el-icon-success"></i>
        </div>
      </div>
      <div class="write-agreement">
        <label>充分了解并清楚知晓该信用卡产品的相关信息，</label>
        <div class="write-row">
          <div class="write-input">
            <span>2.</span>
            <input type="text" />
          </div>
          <i class="el-icon-success"></i>
        </div>
      </div>
      <div class="write-agreement">
        <label>愿意遵守领用协议的各项规则。</label>
        <div class="write-row">
          <div class="write-input">
            <span>3.</span>
            <input type="text" />
          </div>
          <i class="el-icon-success"></i>
        </div>
      </div>

      <!-- 签名 -->
      <div class="autograph">
        <span>本人签名</span>
        <input type="text" />
      </div>

      <!-- 下一步 -->
      <div class="next-step">
        <el-button class="next-step-btn" type="primary" round @click="nextStep">下一步</el-button>
      </div>
    </div>
  </div>
</template>

<script>
  export default{
    data: function() {
      return {

      }
    },
    methods: {
      nextStep() {
        this.$router.push('/bankCreditCard/page_2')
      }
    }
  }
</script>

<style scoped lang="scss">
  .card-container{
    background-color: #eeeeee;
  }
  input::-webkit-input-placeholder{
    font-size: 14px;
    color: #999;
  }
  // 进度
  .progressBar{
    background-color: #fff;
    padding: 10px;
    border-bottom: 1px solid #cccccc;
    position: relative;
    .start{
      width: 20px;
      height: 20px;
      border-radius: 30px;
      background-color: #2790df;
      position: absolute;
      top: 10px;
      left: 10px;
    }
    .end{
      width: 20px;
      height: 20px;
      border-radius: 30px;
      background-color: #ffffff;
      border: 2px solid #bcc4cd;
      box-sizing: border-box;
      position: absolute;
      top: 10px;
      right: 10px;
    }
    .line-progressBar{
      width: 100%;
      height: 4px;
      background-color: #bcc4cd;
      margin-top: 8px;
      .line-item{
        width: 30%;
        height: 4px;
        background-color: #2790df;
        position: relative;
        &::after{
          content: '';
          display: block;
          width: 24px;
          height: 24px;
          border-radius: 30px;
          background-color: #fff;
          border: 6px solid #2790df;
          position: absolute;
          top: 50%;
          margin-top: -12px;
          right: 0;
        }
        .current-num{
          color: #2790df;
          position: absolute;
          top: 24px;
          right: -5px;
        }
      }
    }
    .progressBar-num{
      margin-top: 20px;
      display: flex;
      justify-content: space-between;
    }
    .tips{
      font-size: 14px;
      text-align: center;
      margin: 10px 0;
    }
    .center-btn{
      text-align: center;
    }
  }

  // 填写用户信息
  .user-info-box{
    background-color: #fff;
    .user-info{
      margin-top: 10px;
      padding: 15px 0;
      display: flex;
      align-items: center;
      justify-content: center;
      border-bottom: 1px solid #eeeeee;
      i{
        color: orange;
        font-size: 20px;
        margin-right: 5px;
      }
    }
    .user-info-item{
      display: flex;
      padding: 1rem;
      border-bottom: 1px solid #eeeeee;
      .item-title{
        width: 35%;
        color: #666;
        font-size: 0.875rem;
        span{
          color: red;
        }
      }
      .user-input{
        flex: 1;
        position: relative;
        input {
          border: none;
          outline: none;
          padding-left: 10px;
          display: block;
        }
        .code-img{
          width: 5rem;
          height: 1.875rem;
          border-radius: 5px;
          position: absolute;
          top: 0;
          right: 0;
        }
        .input-tips{
          margin-top: 8px;
          font-size: 0.8125rem;
          color: #f00;
        }
      }
    }
  }

  // 阅读协议
  .user-agreement{
    margin-top: 10px;
    background-color: #fff;
    .user-info{
      margin-top: 10px;
      padding: 15px 0;
      display: flex;
      align-items: center;
      justify-content: center;
      border-bottom: 1px solid #eeeeee;
      i{
        color: orange;
        font-size: 1.25rem;
        margin-right: 5px;
      }
    }
    .agreement-item{
      color: #666;
      font-size: 0.875rem;
      padding: 1rem;
      span{
        margin-left: 3px;
      }
      a{
        color: #0066b3;
      }
    }
    .write-agreement{
      padding: 0 1rem;
      margin-bottom: 10px;
      label{
        font-weight: bold;
        font-size: 14px;
      }
      .write-row{
        display: flex;
        align-items: center;
        .write-input{
          flex: 1;
          border: 1px solid #449cff;
          padding: 5px;
          border-radius: 5px;
          display: flex;
          align-items: center;
          justify-content: space-between;
          margin-top: 5px;
          input{
            outline: none;
            border: none;
            flex: 1;
            height: 24px;
            padding-left: 10px;
          }
        }
        .el-icon-success{
          color: #20ce4c;
          font-size: 22px;
          margin-left: 5px;
        }
      }
    }
    .autograph{
      margin: 15px 0;
      text-align: center;
      margin-top: 25px;
      input{
        border: none;
        outline: none;
        border-radius: 0;
        border-bottom: 1px solid #333;
        margin-left: 5px;
        width: 150px;
      }
    }
  }

  // 下一步
  .next-step{
    background-color: #fff;
    padding: 1rem;
    .next-step-btn{
      width: 100%;
    }
  }
</style>
